package com.zzfeidu.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.zzfeidu.mapper.QmessageMapper;
import com.zzfeidu.pojo.Qmessage;
import com.zzfeidu.service.IQmessageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * 消息 服务层实现
 * 
 * @author liulike
 * @date 2019-11-05
 */
@Component
@Service
public class QmessageServiceImpl implements IQmessageService
{
	@Autowired
	private QmessageMapper qmessageMapper;

	/**
     * 查询消息信息
     * 
     * @param id 消息ID
     * @return 消息信息
     */
    @Override
	public Qmessage selectQmessageByMessageId(String id)
	{
	    return qmessageMapper.selectQmessageByMessageId(id);
	}
	
	/**
     * 查询消息列表
     * 
     * @param qmessage 消息信息
     * @return 消息集合
     */
	@Override
	public List<Qmessage> selectQmessageList(Qmessage qmessage)
	{
	    return qmessageMapper.selectQmessageList(qmessage);
	}
	
    /**
     * 新增消息
     * 
     * @param qmessage 消息信息
     * @return 结果
     */
	@Override
	public int insertQmessage(Qmessage qmessage)
	{
	    return qmessageMapper.insertQmessage(qmessage);
	}
	
	/**
     * 修改消息
     * 
     * @param qmessage 消息信息
     * @return 结果
     */
	@Override
	public int updateQmessage(Qmessage qmessage)
	{
	    return qmessageMapper.updateQmessage(qmessage);
	}


	
}
